package com.talent.web.exception;

import com.talent.web.enums.TalentResponse;

/**
 * @ClassName：TalentException
 * @Author: hszhou
 * @Date: 2024/10/21 13:35
 * @Description: 自定义异常
 */
public class TalentException extends RuntimeException{

    public TalentException(String msg){
        super(msg);
    }

    private TalentResponse response;
    public TalentException(TalentResponse response){
        super(response.getMessage());
        this.response = response;
    }
}
